package com.citus.adventurejournal.fragments;

import com.citus.adventurejournal.R;

import android.app.ListFragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;

public class DashListFragment extends ListFragment {
    String[] values = new String[] { "Test 1", "Test 2", "Test 3" };
    
    
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, 
        Bundle savedInstanceState) {
        
        //this adapter is only here for building our shell, we will replace it with a data feed
        ArrayAdapter<String> adapter = new ArrayAdapter<String>(this.getActivity(),
                android.R.layout.simple_list_item_1, values);
        setListAdapter(adapter);
        
        // Inflate the layout for this fragment
        return inflater.inflate(R.layout.dashlist_fragment, null);
    }
}
